# Temporary makefile!

DEBUG = -g

CPPFLAGS = $(DEBUG) -Wall #-Werror
CFLAGS = $(DEBUG) -Wall #-Werror

all : lib/libsxmlgui.a Application_GLUT_Port/sxmlapp

OBJECTS = Events/GUIEvent.o Events/KeyEvent.o Events/MouseEvent.o GUI/GUIAlphaElement.o GUI/GUIButton.o GUI/GUICheckBox.o GUI/GUIClippedRectangle.o GUI/GUIComboBox.o GUI/GUIEvent.o GUI/GUIFont.o GUI/GUIFontManager.o GUI/GUIFrame.o GUI/GUILabel.o GUI/GUIPanel.o GUI/GUIRadioButton.o GUI/GUIRectangle.o GUI/GUISeparator.o GUI/GUISlider.o GUI/GUITabbedPanel.o GUI/GUITexCoordDescriptor.o GUI/GUITextBox.o GUI/GUIText.o Tools/Benchmark.o Tools/Font.o Tools/FPSCounter.o Tools/GLee.o Tools/Image.o Tools/IOXMLObject.o Tools/Logger.o Tools/MediaPathManager.o Tools/NamedObject.o Tools/Perlin.o Tools/String.o Tools/TextureUtils.o Tools/Timer.o Tools/XMLArbiter.o Tools/tinyxml.o Tools/tinystr.o Tools/tinyxmlerror.o Tools/tinyxmlparser.o

lib/libsxmlgui.a : $(OBJECTS)
	ar -r lib/libsxmlgui.a $(OBJECTS)

APP_OBJECTS = Application_GLUT_Port/Main.o

Application_GLUT_Port/sxmlapp : $(APP_OBJECTS)
	g++ -framework OpenGL -framework GLUT -framework Foundation $(DEBUG) -o Application_GLUT_Port/sxmlapp $(APP_OBJECTS) -Llib -lsxmlgui -lpng -lglpng

.PHONY : clean

clean :
	rm $(OBJECTS) $(APP_OBJECTS) lib/libsxmlgui.a Application_GLUT_Port/sxmlapp
